An Optimal Parallel Algorithm for Merging Using Multiselection
نویسندگان
چکیده
We consider the problem of merging two sorted arrays and on an exclusive read, exclusive write parallel random access machine (EREW PRAM, see [8] for a definition). Our approach consists of identifying elements in and which would have appropriate rank in the merged array. These elements partition the arrays and into equal-size subproblems which then can be assigned to each processor for sequential merging. Here, we present a novel parallel algorithm for selecting the required elements, which leads to a simple and optimal algorithm for merging in parallel. Thus, our technique differs from those of other optimal parallel algorithms for merging where the subarrays are defined by elements at fixed positions in and . Formally, the problem of selection can be stated as follows. Given two ordered multisets and of sizes and , where , the problem is to select the th smallest element in and combined. The problem can be solved sequentially in log time without explicitly merging and [5, 6]. Multiselection, a generalization of selection, is the problem where given a sequence of integers 1
منابع مشابه
An optimal parallel algorithm for the multiselection problem
Given a set S of n elements drawn from a linearly ordered set, and a set K = {k1, k2, . . . , kr} of positive integers between 1 and n, the multiselection problem is to select the kith smallest element for all values of i, 1 ≤ i ≤ r. We present a simple optimal algorithm to solve this problem that runs in O(n log r) time on the EREW PRAM with n1− processors, 0 < < 1.
متن کاملEecient P Arallel Algorithms for Selection and Multiselection on Mesh-connected Computers Short Version
Let S be a set of n unordered elements, and K be an array of r integers, namely ranks, where r n. The problem of multiselection requires to select the kith smallest (largest) element from S for i = 1; . . . ; r. For sequential multiselection, Fredman et al. [4] established a tight lower bound of (n log r) time. This is consistent with the inherent complexity of multiselection that falls in betw...
متن کاملMap-merging in Multi-robot Simultaneous Localization and Mapping Process Using Two Heterogeneous Ground Robots
In this article, a fast and reliable map-merging algorithm is proposed to produce a global two dimensional map of an indoor environment in a multi-robot simultaneous localization and mapping (SLAM) process. In SLAM process, to find its way in this environment, a robot should be able to determine its position relative to a map formed from its observations. To solve this complex problem, simultan...
متن کاملOptimal Parallel Algorithms for Multiselection on Mesh-Connected Computers
Multiselection is the problem of selecting multiple elements at specified ranks from a set of arbitrary elements. In this paper, we first present an efficient algorithm for single-element selection that runs in O( √ p+ np log p log(kp/n)) time for selecting the kth smallest element from n elements on a √ p × √p mesh-connected computer of p ≤ n processors, where the first component is for commun...
متن کاملStatic Task Allocation in Distributed Systems Using Parallel Genetic Algorithm
Over the past two decades, PC speeds have increased from a few instructions per second to several million instructions per second. The tremendous speed of today's networks as well as the increasing need for high-performance systems has made researchers interested in parallel and distributed computing. The rapid growth of distributed systems has led to a variety of problems. Task allocation is a...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Inf. Process. Lett.
دوره 50 شماره
صفحات -
تاریخ انتشار 1994